﻿<UserControl
    x:Class="WinRTXamlToolkit.Sample.Views.EventThrottlerTestView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WinRTXamlToolkit.Sample.Views"
    xmlns:controls="using:WinRTXamlToolkit.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid
        >
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition
                Height="Auto" />
        </Grid.RowDefinitions>
        <Button
            Content="Animate"
            Grid.Row="1"
            Click="OnAnimateButtonClick"/>
        <Grid
            x:Name="AnimationPanel">
            <Rectangle
                Fill="GreenYellow"
                Width="100"
                Height="100"
                VerticalAlignment="Top"
                HorizontalAlignment="Left">
                <Rectangle.RenderTransform>
                    <TranslateTransform
                        x:Name="AnimatedTransform"/>
                </Rectangle.RenderTransform>
            </Rectangle>
        </Grid>
    </Grid>
</UserControl>
